package com.waypolice.pojo.handwriting;

import java.util.Objects;

/**
 * @ClassName SolrFieldVO
 * @Description TODO solr映射的实体字段
 * @Author Administrator
 * @Date 2019/8/6 000609:39
 */
public class SolrFieldVO{

    //solr中唯一ID
    private String id;
    //区分各表
    private String typeTable;
    //卷、卷内件、单件ID
    private String arcId;
    //题名
    private String title;
    //档号/件号
    private String itemOrVolNum;
    //案卷号
    private String volNo;
    //审计组长
    private String auditLeader;
    //文号
    private String textNum;
    //案卷类型/文件类型
    private String arcClass;
    //保管期限
    private String storageTime;
    //归档年度
    private String archiveYear;
    //归档单位
    private String archiveUnit;
    //密级
    private String secretLevel;
    //总卷数
    private String volTotal;
    //责任人
    private String archivePerson;
    //发文日期
    private String postDate;
    //件状态/案卷状态
    private String itemStatus;
    //是否公开
    private String whetherPublic;
    //载体类型
    private String carrierType;
    //PDF地址url
    private String pdfUrl;
    //PDF内容
    private String pdfContent;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypeTable() {
        return typeTable;
    }

    public void setTypeTable(String typeTable) {
        this.typeTable = typeTable;
    }

    public String getArcId() {
        return arcId;
    }

    public void setArcId(String arcId) {
        this.arcId = arcId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getItemOrVolNum() {
        return itemOrVolNum;
    }

    public void setItemOrVolNum(String itemOrVolNum) {
        this.itemOrVolNum = itemOrVolNum;
    }

    public String getVolNo() {
        return volNo;
    }

    public void setVolNo(String volNo) {
        this.volNo = volNo;
    }

    public String getAuditLeader() {
        return auditLeader;
    }

    public void setAuditLeader(String auditLeader) {
        this.auditLeader = auditLeader;
    }

    public String getTextNum() {
        return textNum;
    }

    public void setTextNum(String textNum) {
        this.textNum = textNum;
    }

    public String getArcClass() {
        return arcClass;
    }

    public void setArcClass(String arcClass) {
        this.arcClass = arcClass;
    }

    public String getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(String storageTime) {
        this.storageTime = storageTime;
    }

    public String getArchiveYear() {
        return archiveYear;
    }

    public void setArchiveYear(String archiveYear) {
        this.archiveYear = archiveYear;
    }

    public String getArchiveUnit() {
        return archiveUnit;
    }

    public void setArchiveUnit(String archiveUnit) {
        this.archiveUnit = archiveUnit;
    }

    public String getSecretLevel() {
        return secretLevel;
    }

    public void setSecretLevel(String secretLevel) {
        this.secretLevel = secretLevel;
    }

    public String getVolTotal() {
        return volTotal;
    }

    public void setVolTotal(String volTotal) {
        this.volTotal = volTotal;
    }

    public String getArchivePerson() {
        return archivePerson;
    }

    public void setArchivePerson(String archivePerson) {
        this.archivePerson = archivePerson;
    }

    public String getPostDate() {
        return postDate;
    }

    public void setPostDate(String postDate) {
        this.postDate = postDate;
    }

    public String getItemStatus() {
        return itemStatus;
    }

    public void setItemStatus(String itemStatus) {
        this.itemStatus = itemStatus;
    }

    public String getWhetherPublic() {
        return whetherPublic;
    }

    public void setWhetherPublic(String whetherPublic) {
        this.whetherPublic = whetherPublic;
    }

    public String getCarrierType() {
        return carrierType;
    }

    public void setCarrierType(String carrierType) {
        this.carrierType = carrierType;
    }

    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public String getPdfContent() {
        return pdfContent;
    }

    public void setPdfContent(String pdfContent) {
        this.pdfContent = pdfContent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o){return true;}
        if (o == null || getClass() != o.getClass()) {return false;}
        SolrFieldVO that = (SolrFieldVO) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(typeTable, that.typeTable) &&
                Objects.equals(arcId, that.arcId) &&
                Objects.equals(title, that.title) &&
                Objects.equals(itemOrVolNum, that.itemOrVolNum) &&
                Objects.equals(volNo, that.volNo) &&
                Objects.equals(auditLeader, that.auditLeader) &&
                Objects.equals(textNum, that.textNum) &&
                Objects.equals(arcClass, that.arcClass) &&
                Objects.equals(storageTime, that.storageTime) &&
                Objects.equals(archiveYear, that.archiveYear) &&
                Objects.equals(archiveUnit, that.archiveUnit) &&
                Objects.equals(secretLevel, that.secretLevel) &&
                Objects.equals(volTotal, that.volTotal) &&
                Objects.equals(archivePerson, that.archivePerson) &&
                Objects.equals(postDate, that.postDate) &&
                Objects.equals(itemStatus, that.itemStatus) &&
                Objects.equals(whetherPublic, that.whetherPublic) &&
                Objects.equals(carrierType, that.carrierType) &&
                Objects.equals(pdfUrl, that.pdfUrl) &&
                Objects.equals(pdfContent, that.pdfContent);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, typeTable, arcId, title, itemOrVolNum, volNo, auditLeader, textNum, arcClass, storageTime, archiveYear, archiveUnit, secretLevel, volTotal, archivePerson, postDate, itemStatus, whetherPublic, carrierType, pdfUrl, pdfContent);
    }

    @Override
    public String toString() {
        return "SolrFieldVO{" +
                "id='" + id + '\'' +
                ", typeTable='" + typeTable + '\'' +
                ", arcId='" + arcId + '\'' +
                ", title='" + title + '\'' +
                ", itemOrVolNum='" + itemOrVolNum + '\'' +
                ", volNo='" + volNo + '\'' +
                ", auditLeader='" + auditLeader + '\'' +
                ", textNum='" + textNum + '\'' +
                ", arcClass='" + arcClass + '\'' +
                ", storageTime='" + storageTime + '\'' +
                ", archiveYear='" + archiveYear + '\'' +
                ", archiveUnit='" + archiveUnit + '\'' +
                ", secretLevel='" + secretLevel + '\'' +
                ", volTotal='" + volTotal + '\'' +
                ", archivePerson='" + archivePerson + '\'' +
                ", postDate='" + postDate + '\'' +
                ", itemStatus='" + itemStatus + '\'' +
                ", whetherPublic='" + whetherPublic + '\'' +
                ", carrierType='" + carrierType + '\'' +
                ", pdfUrl='" + pdfUrl + '\'' +
                ", pdfContent='" + pdfContent + '\'' +
                '}';
    }
}
